package com.kjw.learn.springboot.scheduled.chapter2.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: KuangJieWen
 * @Date: 2018/1/23 9:13
 * @Description:测试controller的线程和定时任务的线程的差别
 */
@RestController
public class HelloController {
    @RequestMapping("/hello")
    public String hello(){
        System.out.println(Thread.currentThread().getName());
        return "Hello Spring Boot";
    }
}
